package vo;

import org.apache.hadoop.hbase.util.Bytes;

import util.Utils;


public class Comment extends EnqueteVo{
	public static final String TABLENAME = "comment";
	public static final String CF_ATTRIBUTES = "attributes";
	public static final String COMMENT_TEXT = "text";

	@Override
	public byte[] gerarId(String args[]) {
		byte [] userIdInBytes = Utils.createStringInBytes(args[0]);
		byte [] photoIdInBytes = Utils.createStringInBytes(args[1]);
		byte [] timeInBytes = Bytes.toBytes(""+(-1 * System.currentTimeMillis()));
		return Bytes.add(photoIdInBytes, timeInBytes, userIdInBytes);
	}

}
